#include "Point.h"
#include "Egg.h"
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
Egg::Egg()
{

}
Egg::~Egg()
{

}
Egg::Egg(string spec, bool carn, int att, int spe, int def, int health, int hd, int rr, int xpos, int ypos, int ID)
{
	Species=spec;
	isCarn=carn;
	attack=att;
	speed=spe;
	defense=def;
	maxhealth=health;
	hungerDepletion=hd;
	reproductionRate=rr;
	Location.Update(xpos, ypos);
	parentID=ID;
	age=0;
}
bool Egg::ageEgg()
{
	age++;
	if(age>5)
		return true;
	else
		return false;
}
Point Egg::getLocation()
{
	return Location;
}
bool Egg::getCarn()
{
	return isCarn;
}
int Egg::getParentID()
{
	return parentID;
}
int Egg::getAttack()
{
	return attack;
}
int Egg::getDefense()
{
	return defense;
}
int Egg::getHungerDepletion()
{
	return hungerDepletion;
}
int Egg::getReproductionRate()
{
	return reproductionRate;
}
string Egg::getSpecies()
{
	return Species;
}
int Egg::getSpeed()
{
	return speed;
}
int Egg::getMaxHealth()
{
	return maxhealth;
}